import Vue from 'vue'
import Router from 'vue-router'
import Home from '../App';
import Alert from '../components/notice/alert';
import Loading from '../components/notice/loading';
import One from '../components/layout/one';
import Two from '../components/layout/two';

//组件模块

Vue.use(Router);

export default new Router({
    routes: [
       {
           path: '/main',
           name: 'home',
           component: Home,
           children: [
               {
                   path: 'notice/alert',
                   name: 'alert',
                   component: Alert,
               },
               {
                   path: 'notice/loading',
                   name: 'loading',
                   component: Loading,
               },
               {
                   path: 'layout/one',
                   name: 'one',
                   component: One,
               },
               {
                   path: 'layout/two',
                   name: 'two',
                   component: Two,
               }
           ]
       },

    ]
})
